package com.jwsoft.manager.common.enums;

/**
 * 地址数据ES字段
 *
 * @author fangs
 */
public enum ESAddressField {
    province("province", "省、直辖市"),
    provinceAlias("province_alias", "省、直辖市别名"),
    city("city", "地市"),
    cityAlias("city_alias", "地市"),
    district("district", "区、县"),
    districtAlias("district_alias", "区、县别名"),
    town("town", "乡镇、街道"),
    townAlias("town_alias", "乡镇、街道别名"),

    village("village", "村、社区"),
    villageAlias("village_alias", "村、社区别名"),
    road("road", "路、街"),
    roadAlias("road_alias", "路、街别名"),
    detail("detail", "详细地址（小区）"),
    detailAlias("detail_alias", "详细地址别名");

    private String type;
    private String name;

    ESAddressField(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public String getName() {
        return name;
    }
}
